package com.wang.bind;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;

import java.util.Date;

/**
 * @Classname ConfigurableWebBindingInitializer
 * @Description TODO
 * @Date 2024/5/21 11:07
 * @Created by pc
 */
public class ConfigurableWebBindingInitializer implements WebBindingInitializer {
    @Override
    public void initBinder(WebDataBinder binder) {
        binder.registerCustomEditor(Date.class,new MyCustomDateEditor());
    }
}
